package com.itheima.manager;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.PmsBrand;
import com.itheima.service.db.PmsBrandService;
import com.itheima.util.R;
import com.itheima.vo.PageBeanVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component
public class PmsBrandManager {
    @DubboReference
    PmsBrandService pmsBrandService;


    public R getList(String keyword, Integer pageNum, Integer pageSize) {

        Page<PmsBrand> page=pmsBrandService.getList(keyword, pageNum, pageSize);
        return R.success(new PageBeanVo(pageNum,pageSize,page.getTotal(),page.getRecords()));
    }


}
